package tripx.plan;

import java.io.Serializable;
import java.util.ArrayList;

public class PlanPO implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */

//	private String planId;
	private String userName;
	private String beginDate;
	private String endDate;
	private ArrayList<String> citieNames;
	private String content;
	private boolean join;
//	private ArrayList<Integer> order;

	public PlanPO() {

	}

	public PlanPO(String userName, String begin, String end,
			ArrayList<String> citieNames, String content, boolean join) {
		this.userName = userName;
		this.beginDate = begin;
		this.endDate = end;
		this.citieNames = citieNames;
		this.content = content;
		this.join = join;
	}

	// set methods
	public void setBeginDate(String begin) {
		this.beginDate = begin;
	}

	public void setEndDate(String end) {
		this.endDate = end;
	}

	public void setCityNames(ArrayList<String> citieNames) {
		this.citieNames = citieNames;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
//	public void setOrder(ArrayList<Integer> order){
//		this.order=order;
//	}

	public void setJoin(boolean join) {
		this.join = join;
	}

	//
	 public void setUserName(String name){
	 this.userName=name;
	 }

//	public void setPlanId(String id) {
//		this.planId = id;
//	}

	// get methods
	public ArrayList<String> getCityNames() {
		return this.citieNames;
	}

	public String getContent() {
		return this.content;
	}
	
//	public ArrayList<Integer> getOrder(){
//		return this.order;
//	}

	public String getBeginDate() {
//		return beginDate.get(Calendar.YEAR) + "-"
//				+ beginDate.get(Calendar.MONTH) + "-"
//				+ beginDate.get(Calendar.DAY_OF_MONTH);
		return beginDate;
	}

	public String getEndDate() {
//		return endDate.get(Calendar.YEAR) + "-"
//				+ endDate.get(Calendar.MONTH) + "-"
//				+ endDate.get(Calendar.DAY_OF_MONTH);
		return endDate;
	}

	public String getUserName() {
		return this.userName;
	}

	// public String getPlanId() {
	// return this.planId;
	// }

	public boolean getJoin() {
		return this.join;
	}
}
